home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
008
/
mcad.arc
/
D014.MCD
< prev
next >
Wrap
Text File
|
1987-05-08
|
1KB
|
49 lines
.MCD 11000 0
.TXT 1 0 1 22
1,22
IT ALL GOES TOGETHER
.TXT 2 4 3 67
3,67
All of these components -- MATH, TEXT, and PLOTS -- fit together
to create the ideal tool for doing math and documenting your
results. Look at this example with a Fourier Transform:
.TXT 3 -1 1 68
1,68
------------------------------------------------------------------
.TXT 1 2 1 45
1,45
Generate sine curve with a random component
.TXT 0 53 1 13
1,13
TIME DOMAIN
.EQN 1 -38 3 30
! rd=d ct=10 im=i et=6 zt=15 pr=3 mass length time charge
x[k:sin(k*π/8)+rnd(1)-.5
.EQN 0 34 7 20
2&-2&x[k{1,1,6,15,l}@16&0&k
.EQN 1 -48 1 12
k~0;15
.TXT 3 0 2 37
2,37
Now take the transform of the curve
and look at the power spectrum:
.EQN 3 9 1 14
z:cfft(x)
.TXT 0 22 1 18
1,18
FREQUENCY DOMAIN
.EQN 1 -6 7 24
3&0&|z[k,0{1,1,6,15,e}@16&0&k
.TXT 0 26 2 17
2,17
(Press [F6] to
see a change)
.TXT 1 -51 2 20
2,20
The spectrum shows
two peaks:
.EQN 2 1 2 23
z[1=(-0.078+2.14i)?
.EQN 2 0 2 24
z[15=(-0.078-2.14i)?